package com.tansty.service.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.tansty.dao.mapper.RoleMapper;
import com.tansty.pojo.dto.RoleDTO;
import com.tansty.pojo.po.Role;
import com.tansty.service.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Tansty
 * @since 2021-07-31
 */
@Service
public class RoleServiceImpl extends ServiceImpl<RoleMapper, Role> implements RoleService {
    @Autowired
    RoleMapper roleMapper;
    @Override
    public RoleDTO[] getUserAllRole() {
        return roleMapper.getUserAllRole();
    }
}
